package com.ffapp.demo.bean;

import android.text.TextUtils;

public class NewsListData extends BasisBean {

    /**
     *
     */
    private static final long serialVersionUID = 1L;


    /**
     * id : cab405ad5b5cb3fa08304f1397c43521
     * createBy : a6c5260fcc71d2a18ec7f5d52f1b96e5
     * createUserName : admin
     * createTime : 2020-03-17 18:55:09
     * updateBy : a6c5260fcc71d2a18ec7f5d52f1b96e5
     * updateUserName : admin
     * updateTime : 2020-03-20 13:50:44
     * title : 关于加强消防演练1
     * coverUrl : http://192.168.25.236/zd_user/NoticeCover/2020/03/17/29406719F6AF409DBE3A7550D75D1078.png
     * content : <p>trewtrewt</p>
     * remark : null
     */

    private String id;
    private String createBy;
    private String createUserName;
    private String createTime;
    private String updateBy;
    private String updateUserName;
    private String updateTime;
    private String title;
    private String coverUrl;
    private String content;
    private String sync;
    private String remark;
    private String isTop;
    private String author;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSync() {
        return sync;
    }

    public boolean getIsSync_BOOLEAN() {
        if(TextUtils.isEmpty(sync))return false;
        return sync.equals("1");
    }

    public boolean getIsSync_BOOLEAN2() {
        if(TextUtils.isEmpty(sync))return false;
        return sync.equals("1") || sync.equals("2");
    }

    public void setSync(String sync) {
        this.sync = sync;
    }

    public String getIsTop() {
        return isTop;
    }
    public boolean getIsTop_BOOLEAN() {
        if(TextUtils.isEmpty(isTop))return false;
        return isTop.equals("1");
    }

    public void setIsTop(String isTop) {
        this.isTop = isTop;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}
